/*
*  Copyright 2019-2023 oyun
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/package com.oyun.modules.medicine.domain;

import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import java.sql.Timestamp;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
* @description /
* @author aoyun
* @date 2024-04-28
**/
@Data
@TableName("doctor")
public class Doctor implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "科室id")
    private Long administrativeId;

    @ApiModelProperty(value = "出生日期")
    private Timestamp birthday;

    @ApiModelProperty(value = "从医时间")
    private Timestamp medicalTime;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "毕业学校")
    private String school;

    @ApiModelProperty(value = "学历(字典)")
    private String educationalBackground;

    @ApiModelProperty(value = "职称(字典)")
    private String nickname;

    @ApiModelProperty(value = "专家(字典)")
    private String expert;

    @ApiModelProperty(value = "姓名")
    private String mnName;

    @ApiModelProperty(value = "mnNameCode")
    private String mnNameCode;

    @ApiModelProperty(value = "zhName")
    private String zhName;

    @ApiModelProperty(value = "蒙语介绍")
    private String mnIntroduce;

    @ApiModelProperty(value = "mnIntroduceCode")
    private String mnIntroduceCode;

    @ApiModelProperty(value = "zhIntroduce")
    private String zhIntroduce;

    @ApiModelProperty(value = "医生照片路径")
    private String pathImage;

    @ApiModelProperty(value = "createBy")
    private String createBy;

    @ApiModelProperty(value = "createTime")
    private Timestamp createTime;

    @ApiModelProperty(value = "updateBy")
    private String updateBy;

    @ApiModelProperty(value = "updateTime")
    private Timestamp updateTime;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "status")
    private Integer status;

    public void copy(Doctor source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
